<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<!DOCTYPE html>
<html>
<head>
<%@include file="/WEB-INF/view/base/common.jsp"%>
<title>微信集成平台后台管理系统</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">

<script type="text/javascript" src="${root }/js/index.js"></script>
<script type="text/javascript">
		var baseUrl = "${root}"+"/admin";
		$(document).ready(function(){  
		
			/* 滑动/展开 */
			$("ul.expmenu li > h2").click(function(){
				var arrow = $(this).find("span.arrow");
				if(arrow.hasClass("up")){
					arrow.removeClass("up");
					arrow.addClass("down");
				}else if(arrow.hasClass("down")){
					arrow.removeClass("down");
					arrow.addClass("up");
				}
				$(this).parent().find("ul.menu").slideToggle();
			});	
			
			$("ul.menu li").click(function(){
				//var i = $(this).index();
				$('ul.menu li').removeClass('active');
				$(this).addClass('active');
			});
			//加载默认页面
		});  
	</script>

<style type="text/css">

ul {
	list-style: none;
}
/*选项卡1*/
#Tab1 {
	width: 100%;
	margin: 0px;
	padding: 0px;
	margin: 0 auto;
}
/*选项卡2*/
#Tab2 {
	width: 576px;
	margin: 0px;
	padding: 0px;
	margin: 0 auto;
}
/*菜单class*/
.Menubox {
	width: 100%;
	/* background: url(http://www.jb51.net/upload/small/20079299441652.gif); */
	background: #b5c1cc;
	height: 30px;
	padding-top: 9px;
}

.Menubox ul {
	margin: 0px;
	padding: 0px;
}

.Menubox span {
	float: left;
	display: block;
	cursor: pointer;
	padding-left: 12px;
	text-align: center;
	font-weight: bold;
}

.Menubox li .x {
	font-family: arial;
	color: #f00;
	border: 1px solid #f00;
}

.Menubox .window_tab {
	background: #d2dce4;
	margin-left: 6px;
	border-radius: 3px 3px 0 0;
	border: 1px solid #c4cfd9;
	border-bottom: none;
	line-height: 29px;
	height: 29px;
	color: #37485a;
}

.Menubox .active {
	background: #f1f2f7;
	color: #37485a;
}

.Menubox .liselect {
	margin-right: 10px;
}
.Contentbox {
	clear: both;
	margin-top: 0px;
	border-top: none;
	height: 100%;
	width: 100%;
	text-align: center;
	padding-top: 8px;
}

.x {
	margin-right: 10px;
	cursor:pointer;
}
.x_sel {
	margin-right: 10px;
	cursor:pointer;
}
.frameshow{
	display:block;
}
.framehide {
	display:none;
}
</style>
</head>

<body class="bg">
	<div class="header">
		<img src="${root }/images/logo.png" alt="惠信宝" class="logo l" />
		<p class="r">
			您好! 
			
			${sessionScope.adminuser_session_info.realName}
			
			<a href="javascript:restpass();" class="pwd_reset">重置密码</a><a
				href="${root }/admin/loginOut.do" class="exit_system">退出系统</a>
		</p>
	</div>
	<div class="main clearfix">
		<!--left-->
		<div class="main_l l">
			<ul class="expmenu" id="empmenu">
			
			 <c:forEach var="item" items="${MenuList}">
				<c:if test="${item.pid==0 }">
					<li>
						<h2 class="active">
							<span class="${item.icon }">${item.menuName }</span> <span class="r arrow down"></span>
						</h2>
						<c:if test="${!empty item.menu2 }">
							<c:forEach var="item2" items="${item.menu2 }">
								<ul class="menu">
									<li><a href="javascript:void(0);" onClick="to_tg('${item2.url}','${item2.menuName}','${item2.menuId}');">${item2.menuName }</a>
									<input style="display:none" value=${item2.url}
										id="menuId${item2.menuId}"></li>
								</ul>
							</c:forEach>
							
						</c:if>
						
					</li>
				</c:if>
			</c:forEach>

			</ul>
		</div>
		<!--/left-->
		<!--right-->
	 	<div id="right" class="main_r_add"  style="margin-left:210px;" >
		    <div class="Menubox">
				<div id="ul">
					<div class="l window_tab">
						<span id="menuTab0" onClick="setTab(0)" class="liselect">欢迎</span>
					</div>
				</div> 
			</div>
			<div class="main_r" style="margin-left:0;">
				<div id="Tab1">
					<div id="frame0" class="frameshow">
						<iframe id="_main0" name="_main" src="${root }/admin/main.do"
							marginheight="0" marginwidth="0" frameborder="0" scrolling="auto"
							width="100%" height=100% onLoad="iFrameHeight(0)"  class="_main"></iframe> 
							<div id="_main0"></div>
					</div>
				</div>
			</div>
		</div>
		<!--/right-->
	</div>
</body>
</html>
